<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>Meeting会议管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/styles/common.css"/>
</head>
<body>
<%@ include file="top.jsp" %>
<div class="page-body">
    <%@ include file="leftMenu.jsp" %>
    <div class="page-content">
        <div class="content-nav">
            会议预定 > 查看会议室
        </div>
        <table class="listtable">
            <caption>所有会议室:</caption>
            <tr class="listheader">
                <th>门牌编号</th>
                <th>会议室名称</th>
                <th>容纳人数</th>
                <th>当前状态</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${meetingRoomList}" var="meetingRoom">
                <tr>
                    <td>${meetingRoom.roomNum}</td>
                    <td>${meetingRoom.roomName}</td>
                    <td>${meetingRoom.capacity}</td>
                    <td>${meetingRoom.status}</td>
                    <td><a href="${pageContext.request.contextPath}/meetinghistory?roomId=${meetingRoom.roomID}">会议记录</a></td>
                </tr>
            </c:forEach>
            <%--            <#if mrs??>--%>
            <%--                <#list mrs as mr>--%>
            <%--                    <tr>--%>
            <%--                        <td>${mr.roomnum}</td>--%>
            <%--                        <td>${mr.roomname}</td>--%>
            <%--                        <td>${mr.capacity}</td>--%>
            <%--                        <td>${(mr.status==0)?string('启用','已占用')}</td>--%>
            <%--                        <td>--%>
            <%--                            <a class="clickbutton" href="/roomdetails?roomid=${mr.roomid}">查看详情</a>--%>
            <%--                        </td>--%>
            <%--                    </tr>--%>
            <%--                </#list>--%>
            <%--            </#if>--%>
        </table>
    </div>
</div>
<%@include file="down.jsp"%>
</body>
</html>